package cn.stylefeng.guns.modular.business.frequency.orderfinish.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 订单完成确认表
 *
 * @author yujie
 * @date 2023/05/09 17:16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tt_order_finish")
public class OrderFinish extends BaseEntity {

    /**
     * id
     */
    @TableId("id")
    private Long id;

    /**
     * 订单id
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 交付图片
     */
    @TableField("images")
    private String images;

    /**
     * 应收
     */
    @TableField("collection_fee")
    private BigDecimal collectionFee;

    /**
     * 应付
     */
    @TableField("payment_fee")
    private BigDecimal paymentFee;

    /**
     * 毛利
     */
    @TableField("gross_fee")
    private BigDecimal grossFee;

    /**
     * 交付人
     */
    @TableField("consignee_name")
    private String consigneeName;

    /**
     * 交付人电话
     */
    @TableField("consignee_phone")
    private String consigneePhone;

    /**
     * 交付人身份证号码
     */
    @TableField("consignee_card_number")
    private String consigneeCardNumber;

    /**
     * 交付收款方式 1.线上收钱吧 2.银行转账 3.现金
     */
    @TableField("type")
    private Integer type;

    /**
     * 现金支付金额
     */
    @TableField("cash_fee")
    private BigDecimal cashFee;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id",fill = FieldFill.INSERT)
    private Long tenantId;
}
